<?php

namespace app;

class User
{
    public $uid = null;
    private $info = null;

    public function update()
    {
        $update = [];
    }

    public function info()
    {
        return $this->info;
    }

    public function setInfo()
    {
        $this->info = []; //读取数据库操作
    }

    public function send_msg($msg)
    {
    }

    public function online()
    {
    }

    public function offline()
    {
    }

    public function onClose()
    {
        //广播下线消息
        $this->offline();
    }
}
